# $Id: Makefile 52 2007-05-30 16:34:55Z DarkAn9el $

CC=g++

# Choose debugging or release version
CFLAGS=-O0 -Wall -g3
#CFLAGS= -O2

EXE=gtkabc
SRCS=../conversions.cpp ../main.cpp gtkui.cpp

LDFLAGS=

DEFINES=-DAbcGtkUi

LIBS=`pkg-config gtkmm-2.4 --cflags --libs`

OBJS=$(SRCS:.c=.o)

all:	mainprog

mainprog:	$(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $(DEFINES) -o $(EXE) $(OBJS)

.c.o:	
#	$(CC) $(CFLAGS) $(GTK_INCLUDE) $(LDFLAGS) $(LIBS)  -c $<
	$(CC) $(CFLAGS) $(GTK_INCLUDE)  -c $<

clean:
	rm $(EXE)
